package com.zjitc.mapper;

import com.zjitc.pojo.Express;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Create By IntelliJ IDEA
 *
 * @author: myq
 * @create-Time: 2017/12/8  14:46
 */
@Component
public interface ExpressMapper {
  /**
   * 添加快递
   * @param code
   * @param oid
   * @return
   */
  int add(@Param("code") String code, @Param("oid") String oid);

  /**
   * 查看快递
   * @param oid
   * @return
   */
  Express check(@Param("oid") String oid);

  /**
   * 修改状态
   * @param oid
   * @return
   */
  int delivery(@Param("oid") String oid);

  /**
   * 删除
   * @param oid
   */
  void delete(@Param("oid") String oid);
}
